package com.tansun.easycare.modules.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jeedev.msdp.sys.entity.SysRole;
import com.jeedev.msdp.sys.service.ISysRoleService;
import com.tansun.easycare.modules.sys.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {
	
	
	@Autowired
	private  ISysRoleService  sysRoleService;
	
	
	public  List<SysRole> findRoleList(){
          return sysRoleService.findAllRole();
		  
	}
	@Override
	public  List<SysRole> findRolesByUserNum(String userNum){
		return  sysRoleService.findAllRoleByUser(userNum);
	}
	  

}
